import axios from 'axios';
import BasicConfig from './BasicConfig'
const CLOUD_API = (window as any)['env'];

export default class Retrieve {
    public static PlaceNameSearch(
        key: string,
        event: (res: any) => void
    ) {
        axios.get(CLOUD_API.inputtipsApi + key)
            .then(res => event(res))
            .catch(BasicConfig.RequestError)
    }
}